package cn.gok.oa.information.service.impl;

import cn.gok.oa.information.entity.TbComment;
import cn.gok.oa.information.mapper.TbCommentMapper;
import cn.gok.oa.information.service.ITbCommentService;
import cn.gok.oa.information.vo.CommentVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author gok
 * @since 2022-08-04
 */
@Service
public class TbCommentServiceImpl extends ServiceImpl<TbCommentMapper, TbComment> implements ITbCommentService {

    @Autowired
    TbCommentMapper tbCommentMapper;

    @Override
    public IPage<CommentVo> selectCommentList(Page<CommentVo> page, String search) {
        return tbCommentMapper.selectCommentList(page,search);
    }
}
